﻿Public Class _Default
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

    End Sub

    Protected Sub btn_Sum_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btn_Sum.Click
        txt_Sum.Text = SumTwoNumbers(CInt(txt_Number1.Text), CInt(txt_Number2.Text))
    End Sub

    Private Function SumTwoNumbers(ByVal number1 As Integer, ByVal number2 As Integer) As Integer
        SumTwoNumbers = number1 + number2
    End Function

End Class